<!DOCTYPE html>
{% load static %}
<html lang="en">
<head>
	<meta charset="UTF-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
	<title>密码修改</title>
	<link rel="stylesheet" type="text/css" href="{% static 'css/reset.css' %}">
	<link rel="stylesheet" type="text/css" href="{% static 'css/animate.css' %}">
	<link rel="stylesheet" type="text/css" href="{% static 'css/style.css' %}">
    <script type="text/javascript" src="{% static 'js/jquery.min.js' %}"></script>
    <script type="text/javascript" src="{% static 'js/util/myUtil.js' %}"></script>
<body>
<div class="wp">
<script>
function checkFields(){
    return true
    var pwd = $("#pwd").val()
    var repwd = $("#repwd").val()
    if(!$.lixing.checkPassword(pwd)){
        alert("密码1式不正确!")
        $("#id_email").parents().addClass("errorput")
        return false
    }
    if(!$.lixing.checkPassword(repwd)){
        alert("密码2式不正确!")
        $("#id_email").parents().addClass("errorput")
        return false
    }
    if(pwd != repwd){
        alert("两次输入的密码不一至")
        return false
    }
    return true
}
</script>
    <div class="resetpassword" id="resetPwdForm">
        <h1>修改密码</h1>
        <p>{{ msg }}</p>
        <form action="{% url 'users:passwordResetModify' %}" onsubmit="return checkFields()" id="reset_password_form" method="post">
        {% csrf_token %}
            <input type="hidden" value="{{ email }}" name="email">
            <ul>
                <li>
                    <span class="">新 密 码 ：</span>
                    <input type="password" name="password" id="pwd" placeholder="8-15位非中文字符">
                    <i></i>
                </li>
                <li>
                    <span class="">确定密码：</span>
                    <input type="password" name="nickName" id="repwd" placeholder="8-15位非中文字符">
                    <i></i>
                </li>
                <li class="button">
                    <input type="submit" value="提交">
                </li>
            </ul>
        </form>
    </div>
</div>
</body>
</html>